// import Home from "@/views/Home"
// import Login from "@/views/Login"
// import Test1 from "@/views/test1"
// import Test2 from "@/views/test2"
import Test3 from "@/views/test3"
import Shopping from "@/views/Shoping"
// import Shopping from "@/views/test"

// import Channels from "@/views/news/Channels"
import Home_news from "@/views/news/Home_news"
import Personal from "@/views/Personal"                      //以上这些每次都要加载，后期改成懒加载的方式
import FirstPage from "../views/First_page"
import CallMe from "../views/CallMe"
import TestResult from "../views/TestPage/TestResult"
import Regist from "@/views/login_logout/Reg"
import Login2 from "@/views/login_logout/Login"
// import Login2 from "@/views/login_logout/login_study"

import layout from "@/layout/theDef"
// import Login3 from "@/views/login_logout/HS_login"
import yw_test from "@/views/TestPage/yw_test"
import yz_test from "@/views/TestPage/yz_test"
import Staff_Manage from "@/views/Staff_Manage"
import simple from "@/views/simple"


export default {
    // mode: "history",      //此步是将链接里边的#去掉
    linkActiveClass: 'active',  //HS_login添加点击背景色
    routes: [
        {
            path:'/regist',
            name:'regist',
            component:Regist
        },
        {
            path:"/",
            name:'login',
            component:Login2

        },
        // {
        //     path:"/",
        //     name:'login',
        //     component:Login3

        // },
        {
            path: '/home',
            name: 'layout',
            component: layout,
            children: [
                {
                    path: '',
                    name: "First_page",
                    component: FirstPage,
                    meta:{auth:true}
                },
                {
                    path: "/test3",
                    name: Test3,
                    component: Test3
                },
                {
                    path: "/staff",
                    name: Staff_Manage,
                    component: Staff_Manage
                },
                {
                    path: "/Personal",
                    name: Personal,
                    component: Personal
                },
                
                {
                    path: '/news',
                    name: "Home_news",
                    component: Home_news
                },
                {
                    path: '/shop',
                    name: "Shopping",
                    component: Shopping
                },
                {
                    path:'/callme',
                    name:"CallMe",
                    component:CallMe
                },
                {
                    path:'/simple',
                    name:"simple",
                    component:simple 
                },

                {
                    path:"/testresult",
                    name:"TestResult",
                    component:TestResult,

                    children:[
                      {
                        path:"/yw_test",
                        name:"Yw_test",
                        component:yw_test
                      },
                      {
                          path:"/yz_test",
                          name:"Yz_test",
                          component:yz_test
                      }
                    ],
                },
          



                {
                    path:"/yw_test",
                    name:"yw_test",
                    component:yw_test  
                },


            ]
        },
        // {
        //     path: '/',
        //     name: 'Home',
        //     component: Home,
        //     children: [
        //         {
        //             path: '/test1',
        //             name: "Test1",
        //             component: Test1
        //         },
        //         {
        //             path: '/news',
        //             name: "Home_news",
        //             component: Home_news
        //         },
        //         {
        //             path: "/test2",
        //             name: "Test2",
        //             component: Test2
        //         },
        //         {
        //             path: "/test3",
        //             name: "Test3",
        //             component: Test3,
        //             meta:{auth:true}
        //         },
        //         {
        //             path: '/shop',
        //             name: "Shopping",
        //             component: Shopping
        //         },
        //         {
        //             path: "/personal",
        //             name: "Personal",
        //             component: Personal
        //         }
        //     ]
        // },

    ]
}
